/*
 * @Autor: Ruohong Yu
 * @Date: 2023-04-01 15:11:11
 * @Description: file content
 * @FilePath: \ebookd:\program\vsc\ebook\node-ebook\routes\book.js
 */
const express = require('express')
const router = express.Router()
const book_handler=require('../router_handler/book')
const voice = require('../utils/voice')

router.post('/book/home',book_handler.getHomeDetail)

router.get('/book/detail',book_handler.getBookDetail)

router.get('/book/list',book_handler.getBookList)

router.get('/book/flat-list',book_handler.getFlatList)

router.get('/book/shelf',(req,res)=>{
  res.json({
    bookList:[]
  })
})

router.get('/book/voice',(req,res)=>{
  voice(req,res)
})

module.exports = router